home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWStream / Include / SLMemSin.idl < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.5 KB  |  80 lines  |  [TEXT/MPS ]

  1. //
  2. //    File:        SLMemSin.idl
  3. //
  4. //    Contains:    Interface for the memory sink class
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8.  
  9. #ifndef SLMEMSIN_IDL
  10. #define SLMEMSIN_IDL
  11.  
  12. #ifndef SLRANSIN_IDL
  13. #include "SLRanSin.idl"
  14. #endif
  15.  
  16.  
  17. //==============================================================================
  18. // Classes defined in this interface
  19. //==============================================================================
  20.  
  21. interface   FW_OMemorySink;
  22.  
  23.  
  24. //==============================================================================
  25. // Classes used by this interface
  26. //==============================================================================
  27.  
  28. interface   FW_ORandomAccessSink;
  29.  
  30.  
  31. //========================================================================================
  32. // FW_OMemorySink
  33. //========================================================================================
  34.  
  35. interface FW_OMemorySink : FW_ORandomAccessSink
  36. {
  37.     void InitFromBuffer(in void* buffer, in long capacity, in long length);
  38.  
  39. #ifdef __SOMIDL__
  40.     implementation
  41.     {
  42.         functionprefix = "FW_OMemorySink__";
  43.  
  44.         override:
  45.             somInit,
  46.             somUninit,
  47.  
  48.             Read,
  49.             GetWritableBytes,
  50.             Write,
  51.             GetLength,
  52.             SetLength,
  53.             GetPosition,
  54.             SetPosition;
  55.  
  56.         releaseorder:
  57.             InitFromBuffer;
  58.  
  59.         majorversion = 1;
  60.         minorversion = 0;
  61.  
  62.         passthru C_xh =
  63.             "";
  64.  
  65.         passthru C_xih =
  66.             "";
  67.  
  68. #ifdef __PRIVATE__    
  69.     char*    fBuffer;
  70.     long    fCapacity;
  71.     long    fLength;
  72.     long    fPosition;
  73. #endif
  74.     };
  75. #endif
  76. };
  77.  
  78.  
  79. #endif
  80.